home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 11 / Cream of the Crop 11-2.iso / extra_2 / symbol58.zip / POINTS.IN < prev    next >
Text File  |  1995-05-07  |  575b  |  9 lines

  1. remark This is the equation for a line given 2 points.
  2. remark Point 1 is (x1, y1) and point 2 is (x2, y2).
  3. y = ((y2*x1)+(x*(y1-y2))-(y1*x2))/(x1-x2)
  4. remark This is the equation for a quadratic given 3 points.
  5. remark Point 1 is (x1, y1), point 2 is (x2, y2), and point 3 is (x3, y3).
  6. y = ((y2*((x3*x1)+(x^2))*(x3-x1))+(x*(((x1^2)*(y2-y3))+((x3^2)*(y1-y2))))+(y1*((x2*((x^2)-(x3^2)))-((x^2)*x3)))+((x2^2)*((x*(y3-y1))+(x3*y1)))-(y3*((x^2)+(x1*x2))*(x2-x1)))/(x3-x1)/(x2-x1)/(x2-x3)
  7. remark Type in "calc" to plug in values.
  8. remark Just hit Enter when prompted for "x".
  9.